package com.bdqn.ch03thymeleaf.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.ch03thymeleaf.entity.Account;
import com.bdqn.ch03thymeleaf.entity.TransactionRecord;

import java.math.BigDecimal;
import java.util.Date;

public interface TransferService {
    //登录
    Account getLogin(String cardno, String password);

    //根据卡号查询密码
    Account getAccount(String cardno);

    //修改密码
    int updateTransfer(Account account);

    void transfer(String fromCard, String toCard, BigDecimal amount) throws Exception;

    //添加交易记录表
    int addAccount(TransactionRecord transactionRecord);

    //分页查询数据
    Page getPage(String cardno, Date startDate, Date endDate, Integer pageNo, Integer pageSize);
}
